package top.wangjiu.reactive.rpc.loadbalance;

import top.wangjiu.reactive.rpc.client.RpcClient;
import top.wangjiu.reactive.rpc.client.RpcClientContainer;
import top.wangjiu.reactive.rpc.model.RpcRequest;

import java.net.InetSocketAddress;
import java.util.List;
import java.util.Optional;

/**
 * @ClassName LoadBalance
 * @Description TODO
 * @Author wangjiu
 * @Date 2021/7/15 11:51 上午
 */
public interface LoadBalance {

    RpcClient getClient(RpcRequest request, List<InetSocketAddress> clientList, RpcClientContainer clientContainer);


}
